<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>点赞按钮案例</title>
    <script src="D:\ApplicationFiles\vscode\chapter_three\VUE框架\vue\vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 练习：做一个点赞按钮 -->
        <button v-on:click="count++">点赞{{count}}</button>
    </div>

    <script>
        new Vue({
            el: "#app",
            data: {
                count: 0
            },
            methods: {
                fun() {
                    console.log(1);
                }
            }
        })
    </script>

</body>

</html>